<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="activities">

<div class="abl"><div class="abr"><div class="atl"><div class="atr">
				<table class="body" cellSpacing="0" cellPadding="0" border="0">
		<TR vAlign="top">
			<TD width="100%" align="left" style="padding-left:5px;">
				<div class="body10" style="border-bottom:1px dotted #787878; padding-top:10px; padding-bottom:0px; height:25px;">
						<b>Tutti</b> i prossimi eventi
				</div>
			</TD>
			<TD width="100%" align="center" style="padding-left:5px;">
				<div class="body10b" style="border-bottom:1px dotted #787878; padding-top:10px; padding-bottom:0px; height:25px;">
					Data evento
				</div>
			</TD>
			<TD width="100%" align="center" style="padding-left:5px;">
				<div class="body10b" style="border-bottom:1px dotted #787878; padding-top:10px; padding-bottom:0px; height:25px;">
					<img src="/imgs/ppl.gif"/>
				</div>
			</TD>
		</TR>

	<xsl:variable name="occurrence">
		<xsl:value-of select="count(activity)"/>
	</xsl:variable>

<xsl:for-each select="activity">
	<xsl:variable name="realCityName">
		<xsl:choose>
		<xsl:when test="@lid &gt; 0">
			<xsl:value-of select="venue/@city"/>
		</xsl:when>
		<xsl:when test="string-length(@city) &gt; 0">
			<xsl:value-of select="@city"/>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="@place"/>
		</xsl:otherwise>
		</xsl:choose>
	</xsl:variable>

	<xsl:call-template name="activityListTabled2">
		<xsl:with-param name="status" select="@status"/>
		<xsl:with-param name="activityid" select="@activityid"/>
		<xsl:with-param name="placename" select="$realCityName"/>
		<xsl:with-param name="banner" select="@banner"/>
		<xsl:with-param name="bold" 	select="@bold"/>
		<xsl:with-param name="title" 	select="@title"/>
		<xsl:with-param name="howmany"	select="@howmany"/>
		<xsl:with-param name="dayofyear" select="@dayofyear"/>
		<xsl:with-param name="today"		select="/activities/@today"/>
		<xsl:with-param name="thisyear"		select="/activities/@thisyear"/>
		<xsl:with-param name="aaaa" select="@aaaa"/>
		<xsl:with-param name="dw" select="@dayofweek"/>
		<xsl:with-param name="duedate" 		select="@duedate"/>
		<xsl:with-param name="showdate" 		select="1"/>
	</xsl:call-template>

</xsl:for-each>

				</table>

</div></div></div></div>
<div class="clear">&#160;</div>


</xsl:template>

</xsl:stylesheet>